package com.hx.common;

public final class Globals {

    public static final String REQUEST_USERINFO = "userInfo";//memcached 中用户对象key
    //cookie授权码
    public static final String USER_LOGIN_LICENSE_COOKIE = "license";//cookie中授权码的key值
    public static final String GET_RESOURCE_FILE = "dao_b2c";
    //单点登陆相关参数
    public static final String SINGLE_LOGIN_MEMBER_ID = "member_id";//前台用户cookie 用户ID
    public static final String SINGLE_LOGIN_MEMBER_SECURETY = "member_security"; //前台用户唯一标识
    public static final String SINGLE_LOGIN_MEMBER_RDOM = "member_rdom"; //前台用户唯一标识
    public static final String SINGLE_LOGIN_USER_ID = "user_id";//后台用户cookie 用户ID
    public static final String SINGLE_LOGIN_USER_SECURETY = "user_security"; //后台用户唯一标识
    public static final String SINGLE_LOGIN_USER_RDOM = "user_rdom"; //后台用户唯一标识
    public static final String SINGLE_LOGIN_MD5 = "user_md5";//写入cookie 的md5串
    /** 写入cookie的用户登陆状态  **/
    public static final String SINGLE_LOGIN_STATE = "login_state";
    /**   常量类型-常量 内存表-键值  **/
    public static final String TYPE_CONST_MAP_KEY = "type_const_map";
    /**   资源 内存表-键值  **/
    public static final String RESOURCE_KEY = "resource_list";
    /**   常量内存表-键值  **/
    public static final String CONST_MAP_KEY = "const_map";
    /* 内存树主键  */
    public static final String CATEGORY_TREE_KEY = "category_tree";
    /** 商品分色分码类型表KEY   **/
    public static final String SUBCODE_TYPE_MAP_KEY = "subcode_type_map";
    /** 商品分色分码元素KEY  **/
    public static final String SUBCODE_MAP_KEY = "subcode_map";
    public static final String PAYMENT_TYPE_MAP_KEY = "payment_type";
    /** 验证码 **/
    public static final String USER_LOGIN_RAND = "login_rand";
    /** 申请会员卡验证码 **/
    public static final String APPLY_VIP = "apply_vip";
    /** 前后台登录判断 **/
    public static final String IS_BACKPAGE = "is_backpage";
    /**redirect_url**/
    public static final String REDIRECT_URL = "_action_redirect_url";
    /**opening**/
    public static final String BACK_OPENING = "message!back_opening.shtml";
    public static final String FRONT_OPENING = "message!front_opening.shtml";
    /**error**/
    public static final String ERROR = "message.shtml";
    
    /*COOKIE中member增加的后缀*/
    public static final String MEMBER_KEY = "_dao_meb_";
    public static final String COOKIE_KEY = "cookie_key";
    public static final String MEMCACHE_EXPIRE = "app.memcache.expire";
    public static final String RADOM_KEY = "radom";
    public static final String MENU_LIST = "_menulist_";
    public static final String MENU_SELECTED = "_menuselected_";
    //前台登录后的默认值
    public static final String LOGIN_NEXT_URL = "_login_urlNext_";
    //后台登录后的默认值
    public static final String BACK_NEXT_URL = "_back_login_urlNext_";
    //整个系统访问上一个链接值
    public static final String LAST_URL = "_last_url_";
    /*推荐品牌*/
    public static final String CATEGORY_BRAND_KEY = "category_brand_map";
    //关闭订单的推后的时间
    public static final Integer ORDER_CLOSE_OFFSET_DAYS = 7;
    //关闭订单的推后的时间
    public static final Integer ORDER_CONFIRM_OFFSET_DAYS = 14;
    /*购物车COOKIE主键*/
    public static final String CART_COOKIE_KEY = "dao_cart";
    //action日志是否入db
    public static final String ACTION_LOG_ADD_DB = "action.log.add.db";
    //系统确认订单推后的时间
    public static final Integer SYSTEM_AUTO_CONFIRM_DAYS = 14;
}
